﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace DemoData.Model
{
    public class Customer : ModelBase
    {
        [StringLengthValidator(1, 50)]
        public string Firstname { get; set; }

        [StringLengthValidator(50)]
        public string Middlename { get; set; }

        [StringLengthValidator(1, 50)]
        public string Lastname { get; set; }

        public Customer()
        {
        }

        public Customer(string firstname, string middlename, string lastname)
        {
            this.Firstname = firstname;
            this.Middlename = middlename;
            this.Lastname = lastname;
        }
    }
}
